package com.healthcarex.hip.saas.common.model;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Table;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @author chenpan
 * @ClassName: SysWebLog
 * description:
 * @date 2018-04-02 15:12
 */

@Data
@Table(name = "HP_SYS_LOG")
@ApiModel(value = "SysWebLog", description = "web接口访问日志")
public class SysWebLog extends BaseModel {

    @Column(name = "USERNAME")
    @ApiModelProperty(value = "操作用户")
    private String username;

    @Column(name = "OPERATION")
    @ApiModelProperty(value = "操作")
    private String operation;

    @Column(name = "TIME")
    @ApiModelProperty(value = "耗时")
    private Long time;

    @Column(name = "METHOD")
    @ApiModelProperty(value = "方法")
    private String method;

    @Column(name = "PARAMS")
    @ApiModelProperty(value = "参数")
    private String params;

    @Column(name = "IP")
    @ApiModelProperty(value = "IP")
    private String ip;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "OPERATION_TIME")
    @ApiModelProperty(value = "操作时间")
    private Date operationTime;

    @Column(name = "LOCATION")
    @ApiModelProperty(value = "IP物理位置")
    private String location;

}
